package kr.hkit.powerjava.chther13;

import java.awt.FlowLayout;
import java.awt.HeadlessException;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MyWorkFrame extends JFrame {

	public MyWorkFrame() throws HeadlessException {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		HeaderPanel hp = new HeaderPanel();
		BtnPanel bp = new BtnPanel();
		JPanel jp = new JPanel();
		setLayout(new FlowLayout());
		jp.add(hp);
		jp.add(bp);
		add(jp);
		pack();
		
		setVisible(true);
	}
	
}
